/*--------------------------------------------------------------------------------*/
#ifndef __UTIL__
#define __UTIL__
/*--------------------------------------------------------------------------------*/
#include "primitives.h"
#include "text.h"
#include <cstdlib>
/*--------------------------------------------------------------------------------*/
class UTIL
{

	// -- PUBLIC

public:

	// .. FUNCTIONS

	inline static INT GetIntegerFromText( const TEXT & text )
	{
		return atoi( text.GetArray() );
	}

	inline static REAL GetRealFromText( const TEXT & text )
	{
		return atof( text.GetArray() );
	}
};
/*--------------------------------------------------------------------------------*/
#define UTIL_GetIntegerFromText UTIL::GetIntegerFromText
#define UTIL_GetRealFromText	UTIL::GetRealFromText
/*--------------------------------------------------------------------------------*/
#endif
/*--------------------------------------------------------------------------------*/
